﻿<UserControl xmlns:Control="clr-namespace:Galnote.Control"  xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  xmlns:Extensions="clr-namespace:Sakura.Silverlight.Extensions;assembly=SLExtension"  x:Class="Galnote.Control.TagList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

	
	<ListBox x:Name="TagListBox" Style="{StaticResource ResourceKey=GenericLBStyle}" Loaded="TagListBox_Loaded">
		<ListBox.ItemContainerStyle>
			<Style TargetType="ListBoxItem">
				<Setter Property="Template" Value="{StaticResource ResourceKey=GenericLBITemplate}"/>
			</Style>
		</ListBox.ItemContainerStyle>
		<ListBox.ItemsPanel>
			<ItemsPanelTemplate>
				<toolkit:WrapPanel Orientation="Horizontal"/>
			</ItemsPanelTemplate>
		</ListBox.ItemsPanel>
		<ListBox.ItemTemplate>
			<DataTemplate>
				<Border MaxWidth="160" Height="26" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,8,0">
					<Grid Margin="3" Background="#FFD4D4D4">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="1*"/>
							<ColumnDefinition Width="16"/>
						</Grid.ColumnDefinitions>
						<Rectangle Grid.ColumnSpan="2" Stroke="#FFB4B4B4" StrokeDashArray="5,2"/>
						<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=Taglist}"/>
						<Button Grid.Column="1" Style="{StaticResource ResourceKey=GenericBtnStyle}" Content="X" HorizontalAlignment="Center" VerticalAlignment="Center"/>
					</Grid>
				</Border>
			</DataTemplate>
		</ListBox.ItemTemplate>
	</ListBox>


</UserControl>
